package com.bowen.spike.service;

import com.bowen.spike.entity.ProductType;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.validation.Valid;

import java.util.List;

/**
 * <p>
 * 商品类型表 服务类
 * </p>
 *
 * @author bowen
 * @since 2025-04-28
 */
public interface IProductTypeService extends IService<ProductType> {

    List<ProductType> getAllProductTypes();

    ProductType getProductTypeById(Long id);

    void createProductType(@Valid ProductType productType);
}
